import * as React from 'react'; import { BaseStyleProps, Flex, TextField } from '@aws-amplify/ui-react'; export interface StylePropControlsProps extends BaseStyleProps { setBackgroundColor: ( value: React.SetStateAction ) => void; setBorder: (value: React.SetStateAction) => void; setBorderRadius: ( value: React.SetStateAction ) => void; setBoxShadow: ( value: React.SetStateAction ) => void; setColor: (value: React.SetStateAction) => void; setHeight: (value: React.SetStateAction) => void; setMaxHeight: ( value: React.SetStateAction ) => void; setMaxWidth: ( value: React.SetStateAction ) => void; setMinHeight: ( value: React.SetStateAction ) => void; setMinWidth: ( value: React.SetStateAction ) => void; setOpacity: (value: React.SetStateAction) => void; setPadding: (value: React.SetStateAction) => void; setWidth: (value: React.SetStateAction) => void; } interface StylePropControlsInterface { (props: StylePropControlsProps): JSX.Element; } export const StylePropControls: StylePropControlsInterface = ({ backgroundColor, border, borderRadius, boxShadow, color, height, maxHeight, maxWidth, minHeight, minWidth, opacity, padding, width, setBackgroundColor, setBorder, setBorderRadius, setBoxShadow, setColor, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setPadding, setWidth, }) => { return ( { setBackgroundColor(event.target.value); }} /> { setBorder(event.target.value); }} /> { setBorderRadius(event.target.value); }} /> { setBoxShadow(event.target.value); }} /> { setColor(event.target.value); }} /> { setHeight(event.target.value); }} /> { setMaxHeight(event.target.value); }} /> { setMaxWidth(event.target.value); }} /> { setMinHeight(event.target.value); }} /> { setMinWidth(event.target.value); }} /> { setOpacity(event.target.value); }} /> { setPadding(event.target.value); }} /> { setWidth(event.target.value); }} /> ); };